package Model.Draw.Entities.Impl;

import Model.Core.ICommunicatorEntity;
import Model.Draw.Coordinate;
import Model.Draw.Point;

/**
 *
 * @author José Luz 
 */
public class EntityJoint extends Point{
    private Point linkPoint;
    private ICommunicatorEntity parentEntity;

    public EntityJoint(Coordinate x, Coordinate y, ICommunicatorEntity parentEntity)
    {
        super(x, y);
        this.parentEntity = parentEntity;
    }

    /**
     * @return the linkPoint
     */
    public Point getLinkPoint() {
        return linkPoint;
    }

    /**
     * @param linkPoint the linkPoint to set
     */
    public void setLinkPoint(Point linkPoint) {
        this.linkPoint = linkPoint;
    }

    public ICommunicatorEntity getParentObject() {
        return parentEntity;
    }

    public void setParentObject(ICommunicatorEntity parentObject) {
        this.parentEntity = parentObject;
    }
}